I think there was a problem about this on SPOJ, but I can't find it... -- SuprDewd (Sun Feb 26 02:43:06 UTC 2017)